package com.example.provider;

import com.example.common.service.UserService;
import com.example.easyrpc.registry.LocalRegistry;
import com.example.easyrpc.server.HttpServer;
import com.example.easyrpc.server.VertxHttpServer;

public class EasyProvider {

    public static void main(String[] args) {

        // 注册服务
        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);

        HttpServer httpServer = new VertxHttpServer();
        httpServer.doStart(8080);
    }

}
